<?php

namespace Bundle\ModuleBundle\Plugins\ButtonPlugin;

use Bundle\ModuleBundle\Plugin\Field;

class PluginDescription implements \Bundle\ModuleBundle\Interfaces\PluginDescriptionInterface
{
    public function boot()
    {
        return true;
    }

    public function  getDefaultConfiguration()
    {
        return array (
            'title' => 'Button',
            'fields' => array(
               'type' => new Field(Field::STRING_TYPE),
               'url' => new Field(Field::STRING_TYPE),
            )
        );
    }

    public function getInstance(\Bundle\ModuleBundle\Module $module, \Bundle\ConfigurationBundle\Configuration $configuration = null)
    {
        return new \Bundle\ModuleBundle\Plugins\ButtonPlugin\ButtonPlugin($module, $configuration);
    }


    public function getAliases()
    {
        return array('button');
    }

    public function getName()
    {
        return 'ButtonPlugin';
    }
}

